package com.zzj.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * InnoDB free: 8192 kB
 * </p>
 *
 * @author 花
 * @since 2022-03-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "table_employee",resultMap = "loginMap")
public class TableEmployee implements Serializable {

    private static final long serialVersionUID = 1L;
    // 员工id
    @TableId
    private String uid;
    // 员工姓名
    private String uname;
    // 员工电话
    private String utell;
    // 创建时间
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date ucjtime;
    // 修改时间
    //@DateTimeFormat(pattern="yyyy-MM-dd kk:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date uxgtime;
    // 状态
    private String ustatus;

    @TableField(exist = false)
    private TabLogin tabLogin;
//    @TableField(exist = false)
//    private List<TabPower> powers;

    private List<TabRole> roles;
}
